package main

import (
	"fmt"
	"log"

	"example.com/initregistry/payment"
)

func main() {
	names := payment.ListProcessors()
	fmt.Println("Registered processors:", names)

	for _, name := range names {
		processor, ok := payment.ProcessorByName(name)
		if !ok {
			log.Fatalf("processor %q not found", name)
		}
		fmt.Printf("- %s demo: %s\n", name, processor.Process(100))
	}
}
